package com.qk.common.enums;

/**
 *
 * @author zzq
 * @created 2025-10-10 10:44
 * @description
 *
 */
public enum ParamEnum implements  Code{
      PARAM_ERROR("参数错误", 10001),
      USER_NOT_EXIST("用户不存在", 10002),
      USER_EXIST("用户已存在", 10003),
      USER_PASSWORD_ERROR("用户密码错误", 10004),
      USER_STATUS_ERROR("用户账号被停用", 10004),
    // 活动被引用
    ACTIVITY_REFERENCE_ERROR("活动被引用无法删除", 10005),
    //操作错误异常
    OPERATING_ERROR("操作有误", 10006),
    ;

    private final String msg;
    private final int code;

    ParamEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}